package cn.ronghuanet.base.mapper;

import cn.ronghuanet.base.query.BaseQuery;

import java.util.List;

public interface BaseMapper<T> {
    void save(T t);
    void update(T t);
    void delete(Long id);
    T queryById(Long id);
    List<T> queryAll();
    Long count(BaseQuery query);
    List<T> queryPage(BaseQuery query);
    void batchRemove(List<Long> ids);
}
